package cn.cvs.service;

import cn.cvs.pojo.StorageRecord;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface StorageRecordService {
    /*---*/
    //添加信息
    public int addStorageRecord(StorageRecord storageRecord);
    //删除信息
    public int delStorageRecord(Integer id);
    //修改
    public int updStorageRecord(StorageRecord storageRecord);
    //根据供货商id查询
    public int getStorageRecordBySupplierId(Integer supplierId);

    //if动态查询
    public int getStorageRecordByIf(Integer id
            , Integer pay
            , String name);

    //分页查询
    public List<StorageRecord> getListByPage(Integer id
            ,Integer pay
            ,String name
            ,Integer pageIndex
            ,Integer pageSize);
    //根据入库id查询信息
    public StorageRecord getStorageById(Integer storageId);
}
